package com.oocl.batchdatav2.action;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;

import com.oocl.batchdatav2.pojo.Customer;
import com.oocl.batchdatav2.scanner.DataScanner;
import com.oocl.batchdatav2.scanner.impl.DataScannerImpl;

public enum DataProcessAction {
	INSTANCE;
	
	public List<Customer> customerListStore;

	public void loadDataFromFile(String uri) throws IOException {
		DataScanner scanner = new DataScannerImpl(new FileInputStream(uri));
		customerListStore = scanner.getCustomersFromStream();
	}
}
